/*
*
* WbSterilisationRecordsExample.java
* Copyright(C) 2017-2020 fendo公司
* @date 2019-08-15
*/
package com.mass.waybill.records.model;

import java.util.ArrayList;
import java.util.List;

public class WbSterilisationRecordsExample {
    /**
     * wb_sterilisation_records
     */
    protected String orderByClause;

    /**
     * wb_sterilisation_records
     */
    protected boolean distinct;

    /**
     * wb_sterilisation_records
     */
    protected List<Criteria> oredCriteria;

    /**
     * wb_sterilisation_records
     */
    protected Integer pageIndex;

    /**
     * wb_sterilisation_records
     */
    protected Integer pageSize;

    /**
     *
     * @mbg.generated
     */
    public WbSterilisationRecordsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     *
     * @mbg.generated
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     *
     * @mbg.generated
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     *
     * @mbg.generated
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     *
     * @mbg.generated
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     *
     * @mbg.generated
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     *
     * @mbg.generated
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     *
     * @mbg.generated
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     *
     * @mbg.generated
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     *
     * @mbg.generated
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     *
     * @mbg.generated
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     *
     * @mbg.generated
     */
    public void setPageIndex(Integer pageIndex) {
        this.pageIndex=pageIndex;
    }

    /**
     *
     * @mbg.generated
     */
    public Integer getPageIndex() {
        return pageIndex;
    }

    /**
     *
     * @mbg.generated
     */
    public void setPageSize(Integer pageSize) {
        this.pageSize=pageSize;
    }

    /**
     *
     * @mbg.generated
     */
    public Integer getPageSize() {
        return pageSize;
    }

    /**
     * wb_sterilisation_records null
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andOperationIsNull() {
            addCriterion("operation is null");
            return (Criteria) this;
        }

        public Criteria andOperationIsNotNull() {
            addCriterion("operation is not null");
            return (Criteria) this;
        }

        public Criteria andOperationEqualTo(String value) {
            addCriterion("operation =", value, "operation");
            return (Criteria) this;
        }

        public Criteria andOperationNotEqualTo(String value) {
            addCriterion("operation <>", value, "operation");
            return (Criteria) this;
        }

        public Criteria andOperationGreaterThan(String value) {
            addCriterion("operation >", value, "operation");
            return (Criteria) this;
        }

        public Criteria andOperationGreaterThanOrEqualTo(String value) {
            addCriterion("operation >=", value, "operation");
            return (Criteria) this;
        }

        public Criteria andOperationLessThan(String value) {
            addCriterion("operation <", value, "operation");
            return (Criteria) this;
        }

        public Criteria andOperationLessThanOrEqualTo(String value) {
            addCriterion("operation <=", value, "operation");
            return (Criteria) this;
        }

        public Criteria andOperationLike(String value) {
            addCriterion("operation like", value, "operation");
            return (Criteria) this;
        }

        public Criteria andOperationNotLike(String value) {
            addCriterion("operation not like", value, "operation");
            return (Criteria) this;
        }

        public Criteria andOperationIn(List<String> values) {
            addCriterion("operation in", values, "operation");
            return (Criteria) this;
        }

        public Criteria andOperationNotIn(List<String> values) {
            addCriterion("operation not in", values, "operation");
            return (Criteria) this;
        }

        public Criteria andOperationBetween(String value1, String value2) {
            addCriterion("operation between", value1, value2, "operation");
            return (Criteria) this;
        }

        public Criteria andOperationNotBetween(String value1, String value2) {
            addCriterion("operation not between", value1, value2, "operation");
            return (Criteria) this;
        }

        public Criteria andSettlementNumberIsNull() {
            addCriterion("settlement_number is null");
            return (Criteria) this;
        }

        public Criteria andSettlementNumberIsNotNull() {
            addCriterion("settlement_number is not null");
            return (Criteria) this;
        }

        public Criteria andSettlementNumberEqualTo(String value) {
            addCriterion("settlement_number =", value, "settlementNumber");
            return (Criteria) this;
        }

        public Criteria andSettlementNumberNotEqualTo(String value) {
            addCriterion("settlement_number <>", value, "settlementNumber");
            return (Criteria) this;
        }

        public Criteria andSettlementNumberGreaterThan(String value) {
            addCriterion("settlement_number >", value, "settlementNumber");
            return (Criteria) this;
        }

        public Criteria andSettlementNumberGreaterThanOrEqualTo(String value) {
            addCriterion("settlement_number >=", value, "settlementNumber");
            return (Criteria) this;
        }

        public Criteria andSettlementNumberLessThan(String value) {
            addCriterion("settlement_number <", value, "settlementNumber");
            return (Criteria) this;
        }

        public Criteria andSettlementNumberLessThanOrEqualTo(String value) {
            addCriterion("settlement_number <=", value, "settlementNumber");
            return (Criteria) this;
        }

        public Criteria andSettlementNumberLike(String value) {
            addCriterion("settlement_number like", value, "settlementNumber");
            return (Criteria) this;
        }

        public Criteria andSettlementNumberNotLike(String value) {
            addCriterion("settlement_number not like", value, "settlementNumber");
            return (Criteria) this;
        }

        public Criteria andSettlementNumberIn(List<String> values) {
            addCriterion("settlement_number in", values, "settlementNumber");
            return (Criteria) this;
        }

        public Criteria andSettlementNumberNotIn(List<String> values) {
            addCriterion("settlement_number not in", values, "settlementNumber");
            return (Criteria) this;
        }

        public Criteria andSettlementNumberBetween(String value1, String value2) {
            addCriterion("settlement_number between", value1, value2, "settlementNumber");
            return (Criteria) this;
        }

        public Criteria andSettlementNumberNotBetween(String value1, String value2) {
            addCriterion("settlement_number not between", value1, value2, "settlementNumber");
            return (Criteria) this;
        }

        public Criteria andOrderCodeIsNull() {
            addCriterion("order_code is null");
            return (Criteria) this;
        }

        public Criteria andOrderCodeIsNotNull() {
            addCriterion("order_code is not null");
            return (Criteria) this;
        }

        public Criteria andOrderCodeEqualTo(String value) {
            addCriterion("order_code =", value, "orderCode");
            return (Criteria) this;
        }

        public Criteria andOrderCodeNotEqualTo(String value) {
            addCriterion("order_code <>", value, "orderCode");
            return (Criteria) this;
        }

        public Criteria andOrderCodeGreaterThan(String value) {
            addCriterion("order_code >", value, "orderCode");
            return (Criteria) this;
        }

        public Criteria andOrderCodeGreaterThanOrEqualTo(String value) {
            addCriterion("order_code >=", value, "orderCode");
            return (Criteria) this;
        }

        public Criteria andOrderCodeLessThan(String value) {
            addCriterion("order_code <", value, "orderCode");
            return (Criteria) this;
        }

        public Criteria andOrderCodeLessThanOrEqualTo(String value) {
            addCriterion("order_code <=", value, "orderCode");
            return (Criteria) this;
        }

        public Criteria andOrderCodeLike(String value) {
            addCriterion("order_code like", value, "orderCode");
            return (Criteria) this;
        }

        public Criteria andOrderCodeNotLike(String value) {
            addCriterion("order_code not like", value, "orderCode");
            return (Criteria) this;
        }

        public Criteria andOrderCodeIn(List<String> values) {
            addCriterion("order_code in", values, "orderCode");
            return (Criteria) this;
        }

        public Criteria andOrderCodeNotIn(List<String> values) {
            addCriterion("order_code not in", values, "orderCode");
            return (Criteria) this;
        }

        public Criteria andOrderCodeBetween(String value1, String value2) {
            addCriterion("order_code between", value1, value2, "orderCode");
            return (Criteria) this;
        }

        public Criteria andOrderCodeNotBetween(String value1, String value2) {
            addCriterion("order_code not between", value1, value2, "orderCode");
            return (Criteria) this;
        }

        public Criteria andSterilisationAmountIsNull() {
            addCriterion("sterilisation_amount is null");
            return (Criteria) this;
        }

        public Criteria andSterilisationAmountIsNotNull() {
            addCriterion("sterilisation_amount is not null");
            return (Criteria) this;
        }

        public Criteria andSterilisationAmountEqualTo(String value) {
            addCriterion("sterilisation_amount =", value, "sterilisationAmount");
            return (Criteria) this;
        }

        public Criteria andSterilisationAmountNotEqualTo(String value) {
            addCriterion("sterilisation_amount <>", value, "sterilisationAmount");
            return (Criteria) this;
        }

        public Criteria andSterilisationAmountGreaterThan(String value) {
            addCriterion("sterilisation_amount >", value, "sterilisationAmount");
            return (Criteria) this;
        }

        public Criteria andSterilisationAmountGreaterThanOrEqualTo(String value) {
            addCriterion("sterilisation_amount >=", value, "sterilisationAmount");
            return (Criteria) this;
        }

        public Criteria andSterilisationAmountLessThan(String value) {
            addCriterion("sterilisation_amount <", value, "sterilisationAmount");
            return (Criteria) this;
        }

        public Criteria andSterilisationAmountLessThanOrEqualTo(String value) {
            addCriterion("sterilisation_amount <=", value, "sterilisationAmount");
            return (Criteria) this;
        }

        public Criteria andSterilisationAmountLike(String value) {
            addCriterion("sterilisation_amount like", value, "sterilisationAmount");
            return (Criteria) this;
        }

        public Criteria andSterilisationAmountNotLike(String value) {
            addCriterion("sterilisation_amount not like", value, "sterilisationAmount");
            return (Criteria) this;
        }

        public Criteria andSterilisationAmountIn(List<String> values) {
            addCriterion("sterilisation_amount in", values, "sterilisationAmount");
            return (Criteria) this;
        }

        public Criteria andSterilisationAmountNotIn(List<String> values) {
            addCriterion("sterilisation_amount not in", values, "sterilisationAmount");
            return (Criteria) this;
        }

        public Criteria andSterilisationAmountBetween(String value1, String value2) {
            addCriterion("sterilisation_amount between", value1, value2, "sterilisationAmount");
            return (Criteria) this;
        }

        public Criteria andSterilisationAmountNotBetween(String value1, String value2) {
            addCriterion("sterilisation_amount not between", value1, value2, "sterilisationAmount");
            return (Criteria) this;
        }

        public Criteria andOperatingTimeIsNull() {
            addCriterion("operating_time is null");
            return (Criteria) this;
        }

        public Criteria andOperatingTimeIsNotNull() {
            addCriterion("operating_time is not null");
            return (Criteria) this;
        }

        public Criteria andOperatingTimeEqualTo(String value) {
            addCriterion("operating_time =", value, "operatingTime");
            return (Criteria) this;
        }

        public Criteria andOperatingTimeNotEqualTo(String value) {
            addCriterion("operating_time <>", value, "operatingTime");
            return (Criteria) this;
        }

        public Criteria andOperatingTimeGreaterThan(String value) {
            addCriterion("operating_time >", value, "operatingTime");
            return (Criteria) this;
        }

        public Criteria andOperatingTimeGreaterThanOrEqualTo(String value) {
            addCriterion("operating_time >=", value, "operatingTime");
            return (Criteria) this;
        }

        public Criteria andOperatingTimeLessThan(String value) {
            addCriterion("operating_time <", value, "operatingTime");
            return (Criteria) this;
        }

        public Criteria andOperatingTimeLessThanOrEqualTo(String value) {
            addCriterion("operating_time <=", value, "operatingTime");
            return (Criteria) this;
        }

        public Criteria andOperatingTimeLike(String value) {
            addCriterion("operating_time like", value, "operatingTime");
            return (Criteria) this;
        }

        public Criteria andOperatingTimeNotLike(String value) {
            addCriterion("operating_time not like", value, "operatingTime");
            return (Criteria) this;
        }

        public Criteria andOperatingTimeIn(List<String> values) {
            addCriterion("operating_time in", values, "operatingTime");
            return (Criteria) this;
        }

        public Criteria andOperatingTimeNotIn(List<String> values) {
            addCriterion("operating_time not in", values, "operatingTime");
            return (Criteria) this;
        }

        public Criteria andOperatingTimeBetween(String value1, String value2) {
            addCriterion("operating_time between", value1, value2, "operatingTime");
            return (Criteria) this;
        }

        public Criteria andOperatingTimeNotBetween(String value1, String value2) {
            addCriterion("operating_time not between", value1, value2, "operatingTime");
            return (Criteria) this;
        }
    }

    /**
     *  * wb_sterilisation_records
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * wb_sterilisation_records null
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}